package tt.lab.pmbok.service;

import java.util.List;

import javax.annotation.Resource;

import tt.lab.pmbok.dao.ProcessDao;
import tt.lab.pmbok.model.Inout;
import tt.lab.pmbok.model.PmbokProcess;
import tt.lab.pmbok.model.Tool;

public class ProcessServiceImpl implements ProcessService{
	@Resource(name = "processDao")
	private ProcessDao processDao;
	
	public PmbokProcess load(int id) {
		return processDao.load(id);
	}

	public List<PmbokProcess> loadByGroupArea(int groupId, int areaId) {
		return processDao.loadByGroupArea(groupId, areaId);
	}

	public Tool loadTool(int id) {
		return processDao.loadTool(id);
	}

	public Inout loadInout(int id) {
		return processDao.loadInout(id);
	}

	public List<PmbokProcess> loadAll() {
		
		return processDao.loadByGroupArea(0,0);
	}
	
}
